package org.cuit.echo.seon.example;

/**
 * @author SeonExlike
 * @since 2024/3/25
 */
public class Proxy implements SendGift {

    /*
    代理模式：为其他对象提供一种代理以控制对这个对象的访问。
     */
    private final Pursuit pursuit;

    public Proxy(SchoolGirl girl) {
        this.pursuit = new Pursuit(girl);
    }

    @Override
    public void sendDoll() {
        this.pursuit.sendDoll();
    }

    @Override
    public void sendFlower() {
        this.pursuit.sendFlower();
    }

    @Override
    public void sendChocolate() {
        this.pursuit.sendChocolate();
    }
}
